package com.hmy.finance.api.bo.core.request.receiptOffset;


import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class ContactorApportionRequest implements Serializable {

    /**
     * 联系人 id
     */
    @NotNull(message = "联系人id不能为空")
    private Long customerContactorId;

    /**
     * 联系人名称
     */
    @NotNull(message = "联系人名称不能为空")
    private String customerContactorName;

    /**
     * 联系人余额
     */
    @NotNull(message = "联系人余额不能为空")
    private BigDecimal balanceAmount;

    /**
     * 联系人分摊金额
     */
    @NotNull(message = "联系人分摊金额不能为空")
    private BigDecimal apportionAmount;

    /**
     * 联系人合同分摊信息
     */
    @NotNull(message = "联系人合同分摊信息不能为空")
    private List<ContractApportionRequest> contractApportions;

}
